package org.qf.pojo;

import java.util.Date;

/**
 * @author young
 * @create 2021-01-11-10:56
 * @description
 */
public class SmbmsUser {
    private Long id;

    private String userCode;  //用户编码

    private String userName;  //用户名称

    private String userPassword;  //密码

    private int gender;  //性别

    private Date birthday;  //出生日期

    private String phone;  //电话号码

    private String address;  //地址

    private int userRole;  //用户角色

    private Long createdBy;  //创建人

    private Date creationDate;  //创建时间

    private Long modifyBy;  //修改人

    private Date modifyDate;  //修改时间

    //alt +insert

    //年龄的属性
    private int age;

    //计算年龄
    public int getAge() {
        //年龄
        Date date=new Date();
        int age=date.getYear()-birthday.getYear();
        return age;
    }

    //用户角色名称
    private String userRoleName;

    public String getUserRoleName() {
        return userRoleName;
    }

    public void setUserRoleName(String userRoleName) {
        this.userRoleName = userRoleName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getUserRole() {
        return userRole;
    }

    public void setUserRole(int userRole) {
        this.userRole = userRole;
    }

    public Long getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Long createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    public Long getModifyBy() {
        return modifyBy;
    }

    public void setModifyBy(Long modifyBy) {
        this.modifyBy = modifyBy;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }
}
